package com.icode.translate;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: alexz
 * Date: 14-7-1
 * Time: 上午10:06
 * To change this template use File | Settings | File Templates.
 */
public class SimpleTranslator implements Translatable {

    @Override
    public Result translate(String word) {
        Result result = new Result();
        result.setWord(word);
        result.setParaphrase("[wɜːd]");
        result.setPhoneticSymbol("n. [语] 单词；话语；消息；诺言；命令");
        return result;
    }

    @Override
    public List<String> examples(String word) {
        List<String> examples = new ArrayList<>();
        examples.add("I think it's time you had a word with him.");
        examples.add("A word of warning. Don't stick too precisely to what it says in the book.");
        examples.add("Can you hear the words on the album?");
        return examples;
    }
}
